import request from '../index.js'


export const getAppBasCustomer = (params) => {
    return request.get('/api/customerVisitRecord/selectCustomer', params)
}

export const getLastVisitRecord = (data) => {

    return request.post(`/api/appCrmCustVisit/getLastVisitRecord?customerId=${data}`)
}



export const signIn = (data) => {
    return request.post(`/api/customerVisitRecord/signIn`,data)
}
export const signIn1 = (data) => {
    return request.post(`/api/newCustomerVisitRecord/signIn`,data)
}

export const signOut = (data) => {
    return request.post(`/api/customerVisitRecord/signOut`,data)
}

export const signOutByCustomerId = (data) => {
    return request.post(`/api/customerVisitRecord/signOutByCustomerId`,data)
}
// 访客签退
export const signOutByCustomerIds = (data) => {
    return request.post(`/api/newCustomerVisitRecord/signOutByCustomerId`,data)
}


export const addOrSavePhoto = (data) => {
    return request.post(`/api/customerVisitRecord/addOrSavePhoto`,data)
}
// 陈列检查
export const addOrSavePhoto1 = (data) => {
    return request.post(`/api/newCustomerVisitRecord/addOrSavePhoto`,data)
}

export const removePhoto = (data) => {
    return request.post(`/api/customerVisitRecord/removePhoto`,data)
}
// 陈列检查
export const removePhoto1 = (data) => {
    return request.post(`/api/newCustomerVisitRecord/removePhoto`,data)
}

export const getPhoto= (data) => {
    return request.get(`/api/customerVisitRecord/photoByCustomer`,data)
}
// 陈列检查
export const getPhotos= (data) => {
    return request.get(`/api/newCustomerVisitRecord/photoByCustomer`,data)
}

//  陈列检查
export const doorwayPhotoUrl= (data) => {
    return request.get(`/api/newCustomerVisitRecord/doorwayPhotoUrl`,data)}
//根据最大最小经纬度获取客户
export const aroundCustomer= (data) => {
    return request.get(`/api/aroundCustomer`,data)
}
//获取客户拜访菜单
export const menu= (data) => {
    return request.get(`/api/newCustomerVisitRecord/menu`,data)
}
//客户拜访菜单检查是否完成
export const check= (data) => {
    return request.get(`/api/newCustomerVisitRecord/check`,data)
}
//获取客户拜访陈列拍照划分维度
export const photoGroup= (data) => {
    return request.get(`/api/newCustomerVisitRecord/photoGroup`,data)
}
//已使用的照片特征
export const usedPhoto= (data) => {
    return request.get(`/api/newCustomerVisitRecord/usedPhoto`,data)
}
